Explanations
Classes
-
Default access control: Private.
Operator ( :: )
-
Used to access the content of a
class,struct,scope, ornamespace. -
The symbol
::is used like an "address/directory", so using:-
MyClass::variable_name, refers to a variable of the classMyClass. -
::variable_name, refers to a variable in the global scope.
-
-
Writing
using ScopeNameexposes the content of the desired scope in the current scope.